CSS provider: Add a way to emit errors
authorMatthias Clasen <mclasen@redhat.com>
Sat, 30 Jan 2016 03:45:21 +0000 (22:45 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 30 Jan 2016 05:29:04 +0000 (00:29 -0500)
commit2c7fdf6432057849bdf7ee9aaf71c328a39bd5a8
tree79bd10777c304ea20e4e463b851cf647fe204f5a
parent63bf90ae711689700ac930444c1654850bad1ff0
CSS provider: Add a way to emit errors

Currently, GtkCssProvider can emit ::parsing-error only during
the actual parsing, although the documentation hints that it might
happen at other times.

This commit adds a emit_error method to the GtkStyleProviderPrivate
interface that will let us emit errors from the compute() implementations
as well, which can be useful (e.g. if an image fails to load).
gtk/gtkcssprovider.c
gtk/gtkstyleproviderprivate.c
gtk/gtkstyleproviderprivate.h